package cn.cdeden.knowledge.domain;

import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import cn.cdeden.knowledge.api.domain.vo.EnterpriseFilesTreeRemoteVo;
import cn.cdeden.knowledge.domain.dto.EnterpriseFilesTreeDto;
import cn.cdeden.knowledge.domain.dto.FilesTree;
import cn.cdeden.knowledge.domain.vo.FilesTreeRecycleVo;
import cn.cdeden.system.api.domain.vo.RemoteEnterpriseFileTreeVo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

/**
 * 企业文档树

 */
@Data
@TableName(value = "enterprise_files_tree")
@AutoMappers({@AutoMapper(target = EnterpriseFilesTreeDto.class),
    @AutoMapper(target = RemoteEnterpriseFileTreeVo.class),
    @AutoMapper(target = FilesTree.class),
    @AutoMapper(target = FilesTreeRecycleVo.class),
    @AutoMapper(target = EnterpriseFilesTreeRemoteVo.class),
    @AutoMapper(target = FilesTreeRecycle.class)
})
//@AutoMapper(target = EnterpriseFilesTreeDto.class, reverseConvertGenerate = false)
public class EnterpriseFilesTree {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父亲编号
     */
    @TableField(value = "parent_id")
    private String parentId;

    /**
     * 文件编号
     */
    @TableField(value = "file_id")
    private Integer fileId;

    /**
     * 后缀名
     */
    @TableField(value = "suffix")
    private String suffix;

    /**
     * 名称
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 上级路径
     */
    @TableField(value = "superiors_path")
    private String superiorsPath;

    /**
     * 路径
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 储存表id
     */
    @TableField(value = "storage_id")
    private String storageId;

    /**
     * 储存服务器类型
     */
    @TableField(value = "storage_type")
    private String storageType;

    /**
     * 文件大小
     */
    @TableField(value = "`size`")
    private Long size;

    /**
     * 关连状态
     */
    @TableField(value = "linking_state")
    private String linkingState;

    @TableField(value = "attention")
    private String attention;

    @TableField(value = "`collection`")
    private String collection;

    @TableField(value = "is_lock")
    private String isLock;

    @TableField(value = "column_type")
    private String columnType;

    /**
     * 创建编号
     */
    @TableField(value = "create_id")
    private String createId;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新编号
     */
    @TableField(value = "update_id")
    private String updateId;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除编号
     */
    @TableField(value = "delete_id")
    private String deleteId;

    /**
     * 删除者
     */
    @TableField(value = "delete_by")
    private String deleteBy;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    @TableField(value = "delete_type")
    private String deleteType;

    /**
     * 版本
     */
    @TableField(value = "edition_name")
    private String editionName;

    /**
     * 版本号
     */
    @TableField(value = "edition")
    private String edition;

    @TableField(value = "file_encode")
    private String fileEncode;

    /**
     * 文件的MD5
     */
    @TableField(value = "file_md5")
    private String fileMd5;

    @TableField(value = "parent_file")
    private String parentFile;

    @TableField(value = "effective_date")
    private Date effectiveDate;

    @TableField(value = "expiration_date")
    private Date expirationDate;

    /**
     * 项目模板名称
     */
    @TableField(value = "template_name")
    private String templateName;

    @TableField(value = "doc_content")
    private String docContent;

    /**
     * 父节点id集合
     */
    @TableField(value = "parent_ids")
    private String parentIds;

    /**
     * 置顶排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 描述
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 知识库标记
     */
    @TableField(value = "knowledge_mark")
    private Integer knowledgeMark;

    /**
     * 父亲ids
     */
    @TableField(value = "superiors_id")
    private String superiorsId;

    /**
     * 水印id
     */
    @TableField(value = "water_mark_id")
    private Long waterMarkId;

    /**
     * 权限（新增成员所使用到的权限）
     */
    @TableField(value = "insert_perm")
    private String insertPerm;

    /**
     * 是否是培训资源
     */
    @TableField(value = "to_tms")
    private String toTms;

    @TableField(value = "classify")
    private String classify;

    @TableField(value = "library_id")
    private Long libraryId;

    @TableField(value = "ai_dataset_id")
    private String aiDatasetId;

    @TableField(value = "image_url")
    private String imageUrl;

    @TableField(value = "file_dataset_id")
    private String fileDatasetId;
    @TableField(value = "es_id")
    private String esId;

    @TableField(value = "location")
    private String location;
    @TableField(value = "views")
    private Long views;
}
